﻿using System;
using System.Collections.Generic;
using System.Text;
namespace MCTXCLMQ
{
    public class DIY
    {
        

        /// <summary>
        /// MQ结构
        /// </summary>
        public class MQParam
        {
            /// <summary>
            /// 车牌类型，车牌类型符合公安标准
            /// </summary>
            public string CARTYPE;
            /// <summary>
            /// 车牌号码
            /// </summary>
            public string CARNUM;
            /// <summary>
            /// 过车时间,2013-10-10 10:10:10
            /// </summary>
            public string PASSDATE;
            /// <summary>
            /// 地点编号
            /// </summary>
            public string ADDRESSCODE;
            /// <summary>
            /// 部门编号
            /// </summary>
            public string DEPARTMENTCODE;
            /// <summary>
            /// 数据来源，数据来源，1电子警察，2卡口，3固定测速，4其他
            /// </summary>
            public string DATASOURCE;
            /// <summary>
            /// 设备编号
            /// </summary>
            public string DEVICECODE;
            /// <summary>
            /// 车道编号，1代表第一车道以此类推
            /// </summary>
            public string LANENUM;
            /// <summary>
            /// 车辆速度
            /// </summary>
            public string CARSPEED;
            /// <summary>
            /// 照片路径1
            /// </summary>
            public string PIC1;
            /// <summary>
            /// 照片路径2
            /// </summary>
            public string PIC2;
            /// <summary>
            /// 方向编号，1东->西，2西->东，3南->北，4北->南
            /// </summary>
            public string DIRID;
            /// <summary>
            /// 车牌颜色,如："蓝"
            /// </summary>
            public string TYPECOLOR;
            public MQParam()
            {
                CARTYPE = "";
                CARNUM = "";
                PASSDATE = "";
                ADDRESSCODE = "";
                DEPARTMENTCODE = "";
                DATASOURCE = "";
                DEVICECODE = "";
                LANENUM = "";
                CARSPEED = "";
                PIC1 = "";
                PIC2 = "";
                DIRID = "";
                TYPECOLOR = "";
            }

        }


        /// <summary>
        /// MQ结构-报警
        /// </summary>
        public class MQBJParam
        {
            /// <summary>
            /// 车牌类型，车牌类型符合公安标准
            /// </summary>
            public string CARTYPE;
            /// <summary>
            /// 车牌号码
            /// </summary>
            public string CARNUM;
            /// <summary>
            /// 过车时间,2013-10-10 10:10:10
            /// </summary>
            public string PASSDATE;
            /// <summary>
            /// 地点编号
            /// </summary>
            public string ADDRESSCODE;
            /// <summary>
            /// 部门编号
            /// </summary>
            public string DEPARTMENTCODE;
            /// <summary>
            /// 数据来源，数据来源，1电子警察，2卡口，3固定测速，4其他
            /// </summary>
            public string DATASOURCE;
            /// <summary>
            /// 设备编号
            /// </summary>
            public string DEVICECODE;
            /// <summary>
            /// 车道编号，1代表第一车道以此类推
            /// </summary>
            public string LANENUM;
            /// <summary>
            /// 车辆速度
            /// </summary>
            public string CARSPEED;
            /// <summary>
            /// 照片路径1
            /// </summary>
            public string PIC1;
            /// <summary>
            /// 照片路径2
            /// </summary>
            public string PIC2;
            /// <summary>
            /// 方向编号，1东->西，2西->东，3南->北，4北->南
            /// </summary>
            public string DIRID;
            /// <summary>
            /// 车牌颜色,如："蓝"
            /// </summary>
            public string TYPECOLOR;

            /// <summary>
            /// 布控车辆号牌号码
            /// </summary>
            public string HPHM;
            /// <summary>
            /// 布控车辆号牌种类
            /// </summary>
            public string HPZL;
            /// <summary>
            /// 黑名单处理状态
            /// </summary>
            public string CLZT;
            /// <summary>
            /// 布控方式: 0:自动 1：手动
            /// </summary>
            public string BKFS;
            /// 布控类型（布控来源） 7种
            /// </summary>
            public string BKLX;
            /// 布控卡口
            /// </summary>
            public string BKKK;
            /// <summary>
            /// 布控人
            /// </summary>
            public string BKR;
            /// <summary>
            /// 布控人名称
            /// </summary>
            public string BKRMC;
            /// <summary>
            /// 布控人所在部门名称
            /// </summary>
            public string BKBMMC;
            /// <summary>
            /// 布控时间
            /// </summary>
            public string BKSJ;
            /// <summary>
            /// 布控期限（布控截止期）
            /// </summary>
            public string BKQX;
            /// <summary>
            /// 布控日志编号
            /// </summary>
            public string BKRZBH;
            /// <summary>
            /// 布控成功的卡口
            /// </summary>
            public string BKCGKK;
            /// <summary>
            /// 布控级别：参考枚举黑名单布控级别
            /// </summary>
            public string BKJB;
            /// <summary>
            /// 结案人
            /// </summary>
            public string JAR;
            /// <summary>
            /// 结案人名称
            /// </summary>
            public string JARMC;
            /// <summary>
            /// 结案人所在部门名称
            /// </summary>
            public string JABMMC;
            /// <summary>
            /// 结案内容
            /// </summary>
            public string JANR;

            /// <summary>
            /// 结案时间
            /// </summary>
            public string JASJ;
            /// <summary>
            /// 撤销人
            /// </summary>
            public string CXR;
            /// 撤销人名称
            /// </summary>
            public string CXRMC;
            /// 撤销部门名称
            /// </summary>
            public string CXBMMC;
            /// <summary>
            /// 撤销原因
            /// </summary>
            public string CXYY;
            /// <summary>
            /// 撤销时间
            /// </summary>
            public string CXSJ;
            /// <summary>
            /// 录入人员
            /// </summary>
            public string LRR;
            /// <summary>
            /// 录入人员名称
            /// </summary>
            public string LRRMC;
            /// <summary>
            /// 录入人员所在部门代码
            /// </summary>
            public string LRBM;
            /// <summary>
            /// 录入人员所在部门名称
            /// </summary>
            public string LRBMMC;
            /// <summary>
            /// 录入时间
            /// </summary>
            public string LRSJ;
            /// <summary>
            /// 审核人
            /// </summary>
            public string SHR;
            /// <summary>
            /// 审核人名称
            /// </summary>
            public string SHRMC;
            /// <summary>
            /// 审核人员所在部门部门名称
            /// </summary>
            public string SHBMMC;
            /// <summary>
            /// 审核时间
            /// </summary>
            public string SHSJ;
            /// <summary>
            /// 审核意见
            /// </summary>
            public string SHYJ;

            /// <summary>
            /// 联系人
            /// </summary>
            public string LXR;
            /// <summary>
            /// 联系电话
            /// </summary>
            public string LXDH;
            /// 联系单位
            /// </summary>
            public string LXDW;
            /// 简要案情
            /// </summary>
            public string JYAQ;
            /// <summary>
            /// 强制措施
            /// </summary>
            public string QZCS;
            /// <summary>
            /// 布控形式:0:精确  1:模糊
            /// </summary>
            public string BKXS;
            /// <summary>
            /// 模糊车牌
            /// </summary>
            public string MHCP;
            /// <summary>
            /// 布控人所在部门代码
            /// </summary>
            public string BKBM;
            /// <summary>
            /// 结案人所在部门代码
            /// </summary>
            public string JABM;
            /// <summary>
            /// 撤销部门代码
            /// </summary>
            public string CXBM;
            /// <summary>
            /// 录入人员所在部门代码
            /// </summary>
            public string LRBMT;
            /// <summary>
            /// 审核人员所在部门代码
            /// </summary>
            public string SHBM;
            /// <summary>
            /// 是否全局布控:0:否 1:是
            /// </summary>
            public string ISALLBK;
            /// <summary>
            /// 全局布控部门代码
            /// </summary>
            public string ALLBKBM;
            

            public MQBJParam()
            {
                CARTYPE = "";
                CARNUM = "";
                PASSDATE = "";
                ADDRESSCODE = "";
                DEPARTMENTCODE = "";
                DATASOURCE = "";
                DEVICECODE = "";
                LANENUM = "";
                CARSPEED = "";
                PIC1 = "";
                PIC2 = "";
                DIRID = "";
                TYPECOLOR = "";

                HPHM = "";
                HPZL = "";
                CLZT = "";
                BKFS = "";
                BKLX = "";
                BKKK = "";
                BKR = "";
                BKRMC = "";
                BKBMMC = "";
                BKSJ = "";
                BKQX = "";
                BKRZBH = "";
                BKCGKK = "";

                BKJB = "";
                JAR = "";
                JARMC = "";
                JABMMC = "";
                JANR = "";
                JASJ = "";
                CXR = "";
                CXRMC = "";
                CXBMMC = "";
                CXYY = "";
                CXSJ = "";
                LRR = "";
                LRRMC = "";

                LRBM = "";
                LRBMMC = "";
                LRSJ = "";
                SHR = "";
                SHRMC = "";
                SHBMMC = "";
                SHSJ = "";
                SHYJ = "";
                LXR = "";
                LXDH = "";
                LXDW = "";
                JYAQ = "";
                QZCS = "";

                BKXS = "";
                MHCP = "";
                BKBM = "";
                JABM = "";
                CXBM = "";
                LRBMT = "";
                SHBM = "";
                ISALLBK = "";
                ALLBKBM = "";
            }

        }

        /// <summary>
        /// 卡口数据库结构(改)
        /// </summary>
        public class TGS_DATA
        {
            /// <summary>
            /// 32位UUID
            /// </summary>
            public List<string> ID; 
            /// <summary>
            /// 车牌类型，车牌类型符合公安标准,VARCHAR2(2),
            /// </summary>
            public List<string> CARTYPE;
            /// <summary>
            /// 车牌号码,NVARCHAR2(10),
            /// </summary>
            public List<string> CARNUM;
            /// <summary>
            /// 过车时间,DATE not null,
            /// </summary>
            public List<string> PASSDATE;
            /// <summary>
            /// 地点编号,VARCHAR2(12),
            /// </summary>
            public List<string> ADDRESSCODE;
            /// <summary>
            /// 部门编号,VARCHAR2(12) not null,
            /// </summary>
            public List<string> DEPARTMENTCODE;
            /// <summary>
            /// 数据来源，数据来源，1电子警察，2卡口，3固定测速，4其他,VARCHAR2(2),
            /// </summary>
            public List<string> DATASOURCE;
            /// <summary>
            /// 设备编号,VARCHAR2(20),
            /// </summary>
            public List<string> DEVICECODE;
            /// <summary>
            /// 车道编号，1代表第一车道以此类推,VARCHAR2(2),
            /// </summary>
            public List<string> LANENUM;
            /// <summary>
            /// 车辆速度,NUMBER(3) not null,
            /// </summary>
            public List<string> CARSPEED;
            /// <summary>
            /// 照片路径1,VARCHAR2(200) not null,
            /// </summary>
            public List<string> PIC1;
            /// <summary>
            /// 照片路径2,VARCHAR2(200),
            /// </summary>
            public List<string> PIC2;
            /// <summary>
            /// 方向编号，1东->西，2西->东，3南->北，4北->南,VARCHAR2(2),
            /// </summary>
            public List<string> DIRID;
            /// <summary>
            /// 车牌颜色VARCHAR2(2),
            /// </summary>
            public List<string> TYPECOLOR;

            //public List<string> PIC3;
            public TGS_DATA()
            {
                ID = new List<string>();
                CARTYPE = new List<string>();
                CARNUM = new List<string>();
                PASSDATE = new List<string>();
                ADDRESSCODE = new List<string>();
                DEPARTMENTCODE = new List<string>();
                DATASOURCE = new List<string>();
                DEVICECODE = new List<string>();
                LANENUM = new List<string>();
                CARSPEED = new List<string>();
                PIC1 = new List<string>();
                PIC2 = new List<string>();
                DIRID = new List<string>();
                TYPECOLOR = new List<string>();
                //PIC3 = new List<string>();
            }
            
            ~TGS_DATA()
            {
                ID.Clear();
                CARTYPE.Clear();
                CARNUM.Clear();
                PASSDATE.Clear();
                ADDRESSCODE.Clear();
                DEPARTMENTCODE.Clear();
                DATASOURCE.Clear();
                DEVICECODE.Clear();
                LANENUM.Clear();
                CARSPEED.Clear();
                PIC1.Clear();
                PIC2.Clear();
                DIRID.Clear();
                TYPECOLOR.Clear();
                //PIC3.Clear();
            }
        }

        public class JR_K_TXCL_T
        { 
            public List<string> P_SBBH;
            public List<string> P_SBDD;
            public List<string> P_ZXIP_K;
            public List<string> P_CLLX_DM;
            public List<string> P_CLLX;
            public List<string> P_JLLX_DM;
            public List<string> P_JLLX;
            public List<string> P_CSYS;
            public List<string> P_HPHM;
            public List<string> P_HPYS;
            public List<string> P_JGSJ;
            public List<string> P_XSFX;
            public List<string> P_TPLJ1;
            public List<string> P_TPGS;
            public List<string> P_CD;
            public List<string> P_CLLB;
            public List<string> P_CLSD;
            public JR_K_TXCL_T()
            {
                P_SBBH = new List<string>();
                P_SBDD = new List<string>();
                P_ZXIP_K = new List<string>();
                P_CLLX_DM = new List<string>();
                P_CLLX = new List<string>();
                P_JLLX_DM = new List<string>();
                P_JLLX = new List<string>();
                P_CSYS = new List<string>();
                P_HPHM = new List<string>();
                P_HPYS = new List<string>();
                P_JGSJ = new List<string>();
                P_XSFX = new List<string>();
                P_TPLJ1 = new List<string>();
                P_TPGS = new List<string>();
                P_CD = new List<string>();
                P_CLLB = new List<string>();
                P_CLSD = new List<string>();
            }

            ~JR_K_TXCL_T()
            {
                P_SBBH.Clear();
                P_SBDD.Clear();
                P_ZXIP_K.Clear();
                P_CLLX_DM.Clear();
                P_CLLX.Clear();
                P_JLLX_DM.Clear();
                P_JLLX.Clear();
                P_CSYS.Clear();
                P_HPHM.Clear();
                P_HPYS.Clear();
                P_JGSJ.Clear();
                P_XSFX.Clear();
                P_TPLJ1.Clear();
                P_TPGS.Clear();
                P_CD.Clear();
                P_CLLB.Clear();
                P_CLSD.Clear();
            }
        }

        /// <summary>
        /// 电警数据库结构(改)
        /// </summary>
        public class VIO_DATA
        {
            /// <summary>
            /// uuid32位不重复编号VARCHAR2(32) not null,
            /// </summary>
            public string ID;
            /// <summary>
            /// 车牌类型，车牌类型符合公安标准,VARCHAR2(2),
            /// </summary>
            public string CARTYPE;
            /// <summary>
            /// 车牌号码,NVARCHAR2(16),
            /// </summary>
            public string CARNUM;
            /// <summary>
            /// 车牌颜色,VARCHAR2(2),
            /// </summary>
            public string TYPECOLOR;
            /// <summary>
            /// 违法时间,DATE,  
            /// </summary>
            public string VIODATE;
            /// <summary>
            /// 违法类型 ,VARCHAR2(6), 
            /// </summary>
            public string VIOTYPE;
            /// <summary>
            /// 违法地点编号, VARCHAR2(12),
            /// </summary>
            public string ADDRESSCODE;
            /// <summary>
            /// 部门编号,VARCHAR2(12),
            /// </summary>
            public string DEPARTMENTCODE;
            /// <summary>
            /// 数据来源，数据来源，1电子警察，2卡口，3固定测速，4其他,VARCHAR2(2),
            /// </summary>
            public string DATASOURCE;
            /// <summary>
            /// 设备编号,VARCHAR2(20),
            /// </summary>
            public string DEVICECODE;
            /// <summary>
            /// 方向编号，1东->西，2西->东，3南->北，4北->南,VARCHAR2(8),
            /// </summary>
            public string DIRID;
            /// <summary>
            /// 红灯开始时间,DATE,
            /// </summary>
            public string REDLIGHTDATA;
            /// <summary>
            /// 红灯持续时间,NUMBER(3),
            /// </summary>
            public string DURATION;
            /// <summary>
            /// 车道编号，1代表第一车道以此类推V,ARCHAR2(2),
            /// </summary>
            public string LANENUM;
            /// <summary>
            /// 车辆速度,NUMBER(3),
            /// </summary>
            public string CARSPEED;
            /// <summary>
            /// 照片路径1,VARCHAR2(200),
            /// </summary>
            public string PIC1;
            /// <summary>
            /// 照片路径2,VARCHAR2(200),
            /// </summary>
            public string PIC2;
            /// <summary>
            /// 照片路径3,VARCHAR2(200),
            /// </summary>
            public string PIC3;
            /// <summary>
            /// 照片路径4,VARCHAR2(200)
            /// </summary>
            public string PIC4;

            public VIO_DATA()
            {
                ID = "";
                CARTYPE = "";
                CARNUM = "";
                TYPECOLOR = "";
                VIODATE = "";
                VIOTYPE = "";
                ADDRESSCODE = "";
                DEPARTMENTCODE = "";
                DATASOURCE = "";
                DEVICECODE = "";
                DIRID = "";
                REDLIGHTDATA = "";
                DURATION = "";
                LANENUM = "";
                CARSPEED = "";
                PIC1 = "";
                PIC2 = "";
                PIC3 = "";
                PIC4 = "";
            }



        }

    }
}
